<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue 组件</title>
    <script src="./js/vue.min.js"></script>
    <script src="./js/httpVueLoader.js"></script>
</head>
<body>

    <div id="vm">
        {{message}}
        <hr>
        <button-counter></button-counter>
    </div>

    <script>
        var vm = new Vue({
            el: '#vm',
            data: {
                message: 'Hello Vue!'
            },
            components: {
                // 将组建加入组建库
                'button-counter': httpVueLoader('./component/button-counter.vue'),
            }
        })
    </script>
    
</body>
</html>